package javaRevise.exception;

/**
 * @author WuYongheng
 * @date 2021/12/4
 * @description 演示捕捉异常
 */
public class TestException {
    public static void main(String[] args) {
        try {
            int i = 10 / 0;
        } catch (Exception e) {
            System.out.println(e.getMessage());
        } finally {
            System.out.println("执行finally");
        }
    }
}
